From: Carlos Garnacho Date: Mon, 29 Jan 2024 15:18:31 +0000 (+0100) Subject: st: Do not use markup in button labels X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~84 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=92bea8a73e630145d9cc8f27cc2e8ce86299fd65;p=gnome-shell.git st: Do not use markup in button labels It sounds strange that buttons would admit Pango markup in their label text. It sounds better to default to plain text, and let users wanting markup to access the child directly. This also makes the first label being set consistent with later text being assigned wrt markup usage, since the non-markup ClutterText API is used if the child is already present and of the expected type. Part-of: --- diff --git a/src/st/st-button.c b/src/st/st-button.c index a958c1491..42745f361 100644 --- a/src/st/st-button.c +++ b/src/st/st-button.c @@ -682,7 +682,6 @@ st_button_set_label (StButton *button, "text", priv->text, "line-alignment", PANGO_ALIGN_CENTER, "ellipsize", PANGO_ELLIPSIZE_END, - "use-markup", TRUE, "x-align", CLUTTER_ACTOR_ALIGN_CENTER, "y-align", CLUTTER_ACTOR_ALIGN_CENTER, NULL);